package com.android.lovely.data

import android.os.Parcelable
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize

@Parcelize
@JsonClass(generateAdapter = true)
data class SysMsg(
    @Json(name = "id") val id: Int = 0,
    @Json(name = "user_id") val userId: Int = 0,
    @Json(name = "type") val type: Int = 0,
    @Json(name = "title") val title: String = "",
    @Json(name = "image") val image: String = "",
    @Json(name = "content") val content: String = "",
    @Json(name = "detail") val reportContent: String = "",
    @Json(name = "c_time") val time: String = "",
    @Json(name = "status") var status: Int = 0,
    @Json(name = "report_id") val reportId: Int = 0,
) : Parcelable {

    val hasRead get() = status == 1
}